Current Location: Home> Function Categories> sin

sin

Sine
Name:sin
Category:math
Programming Language:php
One-line Description:Sine.

Definition and usage

sin() function returns the sine of a number.

Example

In this case, we will calculate the sine of different values:

 <?php
echo ( sin ( 3 ) ) ;
echo ( sin ( - 3 ) ) ;
echo ( sin ( 0 ) ) ;
echo ( sin ( M_PI ) ) ;
echo ( sin ( M_PI_2 ) )
?>

Try it yourself

grammar

 sin ( x )
parameter describe
x Required. A number.

illustrate

sin() returns the sine value of parameter x . The unit of parameter x is radians.

Similar Functions
  • Calculate the index of e exp

    exp

    Calculatetheindexofe
  • Returns the remainder of the floating point number of division fmod

    fmod

    Returnstheremaindero
  • Convert radians to corresponding angles rad2deg

    rad2deg

    Convertradianstocorr
  • Combined linear congruent generator lcg_value

    lcg_value

    Combinedlinearcongru
  • Arctangle of two parameters atan2

    atan2

    Arctangleoftwoparame
  • Hyperbolic cosine cosh

    cosh

    Hyperboliccosine
  • Get the pi value pi

    pi

    Getthepivalue
  • Sow the random number generator seeds srand

    srand

    Sowtherandomnumberge
Popular Articles